﻿<%@ Page Language="C#" Trace="false" Explicit="true" AspCompat="true" Debug="true" %>

<%--<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Imaging" %>
<%@ Import Namespace="System.Drawing.Text" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>

<script runat="server">
    public void Page_Load(object sender, System.EventArgs e)
    {
        System.IO.MemoryStream memStream = new System.IO.MemoryStream();
        int sId = int.Parse(this.Request.QueryString["sId"]);
        int bio = int.Parse(this.Request.QueryString["bio"]);
        Response.Write(sId.ToString() + " "+ bio.ToString());
        Bitmap pic = smallDeimos.MapDrawer.DrawMap(sId, bio);

        //send to the user
        Response.Clear();
        Response.ContentType = "image/jpeg";
        pic.Save(memStream, ImageFormat.Jpeg);
        memStream.WriteTo(Response.OutputStream);
    }
</script>

--%>